package com.jtny.nytb.config.measurementunit.dao;

import com.jtny.component.core.mapper.CoreMapper;
import com.jtny.nytb.config.measurementunit.domain.MeasurementUnitDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MeasurementUnitDAO extends CoreMapper<MeasurementUnitDO> {

    /**
     * 通过计量单位名查询id
     * @param unitName
     * @return
     */
    List<Long> findUnitIdByName(@Param("unitName")String unitName);
}
